<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/3/10
 * Time: 15:00
 */

namespace app\api\controller;
use app\common\controller\Api;
use think\Db;
use think\Request;

class Introduction extends Api
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';

    public function index()
    {
        if (!Request::instance()->isGet())
            $this->error('请求方式不正确');

        $info = Db::name('introduction')->find();
        if($info)
            $this->success('',$info);
        $this->error('暂无数据');
    }
}